package org.s.com.springioc3.controller;

import jakarta.annotation.Resource;
import org.s.com.springioc3.model.User;
import org.s.com.springioc3.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Controller;

@Controller
public class UserController {
    @Resource(name="user1")
    //@Qualifier("user")
    @Autowired
    public User user2;

    public void say(){

        System.out.println("hi,UserController");
    }
}
